package com.service.impl;
import com.dao.BloggerMessageDao;
import com.entity.BloggerMessage;
import com.service.BloggerMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BloggerMessageServiceImpl implements BloggerMessageService {
    @Autowired
    private BloggerMessageDao bloggerMesssageDao;
    @Override
    public Integer addMessage(BloggerMessage bloggerMessage) {
        return bloggerMesssageDao.addMessage(bloggerMessage);
    }

    @Override
    public List<BloggerMessage> getBloggerMessageList(BloggerMessage bloggerMessage) {
        return bloggerMesssageDao.getBloggerMessageList(bloggerMessage);
    }
}
